$(document).ready(function(){
    var options = {
        slides: '.slide', // The name of a slide in the slidesContainer
        swipe: true,    // Add possibility to Swipe > note that you have to include touchSwipe for this
        slideTracker: true, // Add a UL with list items to track the current slide
        slideTrackerID: 'slideposition', // The name of the UL that tracks the slides
        slideOnInterval: true, // Slide on interval
        interval: 5000, // Interval to slide on if slideOnInterval is enabled
        animateDuration: 1000, // Duration of an animation
        animationEasing: 'ease', // Accepts: linear ease in out in-out snap easeOutCubic easeInOutCubic easeInCirc easeOutCirc easeInOutCirc easeInExpo easeOutExpo easeInOutExpo easeInQuad easeOutQuad easeInOutQuad easeInQuart easeOutQuart easeInOutQuart easeInQuint easeOutQuint easeInOutQuint easeInSine easeOutSine easeInOutSine easeInBack easeOutBack easeInOutBack
        pauseOnHover: false // Pause when user hovers the slide container
    };

    $(".slider").simpleSlider(options);


// footer
$('#toggling').hide();
var footerHeight = $('#footer').outerHeight(true);
$('#footer-toggle').click(function(){
    $('#toggling').animate({
        'height':'toggle'
    }, 500);
    $(this).toggleClass('expanded');
    $("#main-wrap .main-wrap-mb").animate({
        'height':'toggle'
    }, 500);

    return false;
});


// left_slide
$("#left_slide li").hover(function(){
    $(this).addClass('on').find("ul.sec").show();
},function(){
    $(this).removeClass('on').find("ul.sec").hide();
});

});